package com.foodmarket.service;

import com.foodmarket.pojo.Buyers;
import com.foodmarket.pojo.Sellers;
import org.apache.catalina.User;

public interface UserService {
    //根据用户名查询用户
    Buyers findByBuyerName(String username);

    Sellers findBySellerName(String username);

    //注册
    void registerBuyer(String username, String password,String phone,String email,String name);

    void registerSeller(String username, String password,String phone,String email,String name);

    //更新用户信息
    void updateBuyer(Buyers buyers);

    void updateSeller(Sellers sellers);

    //更改密码
    void updateSellerPwd(String newPwd);

    void updateBuyerPwd(String newPwd);
}

